﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlineGameLibrary.Contract;

namespace OnlineGameLibrary.Game
{
    public abstract class GameBase
    {
        public GameRoom GameRoom { set; get; }
        public GameInfo GameInfo {protected set; get; }
        public GameBase(GameRoom gameroom)
        {
            GameRoom = gameroom;
        }

        public abstract void OnPlayerLeave(string playerid);
        public abstract void BeginRun(Action<GameEndEventArgs> onEnd);
        public abstract void StopRun();
    }
}
